package com.tofindaway.aop;

import org.apache.log4j.Logger;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

@Aspect
public class LogOprs {

	private static Logger logger = Logger.getLogger(LogOprs.class);

	public void init() {
		logger.debug("LogOpr init()..");
	}

	@Pointcut("execution(* com.tofindaway.service.*.get*())")
	public void logOprPointcut() {
	}

	@Before(value = "logOprPointcut()")
	public void logOrp() {
		System.out.println("i am advice , but idont know what i get ..");

	}

}
